package com.leyou.common.enums;

import lombok.Getter;

@Getter
public enum ExceptionEnum {
    PRICE_CANNOT_BE_NULL(400, "价格不能为空!"),
    DATA_TRANSFER_ERROR(500, "数据转换异常!"),
    CATEGORY_NOT_FOND(204, "没有查到分类!"),
    BRAND_NOT_FOUND(204, "没有查询到品牌!"),
    INSERT_OPERATION_FAIL(500, "添加操作失败!"),
    INVALID_FILE_TYPE(500, "不支持的文件类型"),
    FILE_UPLOAD_ERROR(500, "文件上传失败"),
    UPDATE_OPERATION_FAIL(500, "更新操作失败!"),
    CATEGORY_NOT_FOUND(204, "没有查询到种类!"),
    DELETE_OPERATION_FAIL(500, "删除操作失败!"),
    GOODS_NOT_FOUND(204, "没有查询到商品!"),
    SPEC_PARAM_NOT_FOUND(204, "没有查询到规格参数!"),
    INVALID_PARAM_ERROR(500, "无效参数错误!"),
    DIRECTORY_WRITER_ERROR(500, "文件目录写入错误!"),
    FILE_WRITER_ERROR(500, "文件写入错误!"),
    SEND_MESSAGE_ERROR(500, "短信发送失败!"),
    INVALID_PHONE_NUMBER(400, "手机号格式错误!"),
    INVALID_VERIFY_CODE(400, "验证码错误!"),
    INVALID_USERNAME_PASSWORD(400, "用户名或密码错误！"),
    USER_NOT_FOUND(400, "用户不存在!"),
    VERIFY_FAIL(401, "登录状态校验失败！"),
    DELETE_FAIL(500, "登录状态删除失败！"),
    INVALID_SERVER_ID_SECRET(400, "无效的服务查询ID!"),
    INSUFFICIENT_AUTHORITY(403, "权限不足!"),
    CARTS_NOT_FOUND(204, "没有查询到该购物车商品!"),
    STOCK_NOT_ENOUGH(500, "库存不足!"),
    ORDER_NOT_FOUND(204, "未查询到订单！"),
    INVALID_ORDER_STATUS(500,"订单状态异常！"),
    INVALID_NOTIFY_SIGN(500,"微信签名错误"),
    INVALID_NOTIFY_PARAM(500,"无效的通知参数"),
    ORDER_DETAIL_NOT_FOUND(204,"未查询到订单详情")
    ;
    private int status;
    private String message;

    ExceptionEnum(int status, String message) {
        this.status = status;
        this.message = message;
    }

}